<!DOCTYPE html>
<html lang="en-US" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>React Native 简介 | react docs</title>
    <meta name="description" content="this is react docs for xiaoman">
    <meta name="generator" content="VitePress v1.3.0">
    <link rel="preload stylesheet" href="/react-docs/assets/style.BNJ6TUN2.css" as="style">
    
    <script type="module" src="/react-docs/assets/app.G7GQHgc9.js"></script>
    <link rel="preload" href="/react-docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
    <link rel="modulepreload" href="/react-docs/assets/chunks/framework.C8RqO6c5.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/theme.BJckTS5s.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/katex.ChWnQ-fc.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/dagre-OKDRZEBW.BtzdjjbI.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/c4Diagram-VJAJSXHY.CzRDfJOW.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/flowDiagram-4HSFHLVR.CzTXaEak.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/erDiagram-Q7BY3M3F.DfeJ8K96.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/gitGraphDiagram-7IBYFJ6S.C0BBE19v.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/ganttDiagram-APWFNJXF.38jDeOAA.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/infoDiagram-PH2N3AL5.19vvSVF9.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/pieDiagram-IB7DONF6.DTgQdVwj.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/quadrantDiagram-7GDLP6J5.BCmlVfIL.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/xychartDiagram-VJFVF3MP.DA2niCNn.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/requirementDiagram-KVF5MWMF.BlamCtdh.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/sequenceDiagram-X6HHIX6F.3Mrt0jHT.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/classDiagram-GIVACNV2.hfW869QK.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/classDiagram-v2-COTLJTTW.hfW869QK.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/stateDiagram-DGXRK772.C6T4gmk4.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/stateDiagram-v2-YXO3MK2T.BY2hqLa5.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/journeyDiagram-U35MCT3I.-ZBoNz0I.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/timeline-definition-BDJGKUSR.BuQ_uHWG.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/mindmap-definition-ALO5MXBD.DVg8qYib.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/kanban-definition-NDS4AKOZ.6GB9vHzh.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/sankeyDiagram-QLVOVGJD.gamKlfpH.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/diagram-VNBRO52H.BkG9CeA8.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/diagram-SSKATNLV.BZ1lZp4j.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/blockDiagram-JOT3LUYC.cjmltH-x.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/architectureDiagram-IEHRJDOE.3F1SKbei.js">
    <link rel="modulepreload" href="/react-docs/assets/chunks/virtual_mermaid-config.DDnGl6nM.js">
    <link rel="modulepreload" href="/react-docs/assets/react-native_basic_introduce.md.CS8vVX_5.lean.js">
    <link rel="icon" href="/react.ico">
    <script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
    <script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
  </head>
  <body>
    <div id="app"><div class="Layout" data-v-d8b57b2d><!--[--><!--]--><!--[--><span tabindex="-1" data-v-c8291ffa></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-c8291ffa> Skip to content </a><!--]--><!----><header class="VPNav" data-v-d8b57b2d data-v-7ad780c2><div class="VPNavBar has-sidebar top" data-v-7ad780c2 data-v-9fd4d1dd><div class="wrapper" data-v-9fd4d1dd><div class="container" data-v-9fd4d1dd><div class="title" data-v-9fd4d1dd><div class="VPNavBarTitle has-sidebar" data-v-9fd4d1dd data-v-0ad69264><a class="title" href="/react-docs/" data-v-0ad69264><!--[--><!--]--><!--[--><img class="VPImage logo" src="/react-docs/logo.png" alt data-v-ab19afbb><!--]--><span data-v-0ad69264>react docs</span><!--[--><!--]--></a></div></div><div class="content" data-v-9fd4d1dd><div class="content-body" data-v-9fd4d1dd><!--[--><!--]--><div class="VPNavBarSearch search" data-v-9fd4d1dd><!--[--><!----><div id="local-search"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><span class="vp-icon DocSearch-Search-Icon"></span><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"><kbd class="DocSearch-Button-Key"></kbd><kbd class="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-9fd4d1dd data-v-afb2845e><span id="main-nav-aria-label" class="visually-hidden" data-v-afb2845e> Main Navigation </span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/react-docs/" tabindex="0" data-v-afb2845e data-v-08fbf4b6><!--[--><span data-v-08fbf4b6>首页</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/react-docs/react/basic/introduce.html" tabindex="0" data-v-afb2845e data-v-08fbf4b6><!--[--><span data-v-08fbf4b6>React</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink active" href="/react-docs/react-native/basic/introduce.html" tabindex="0" data-v-afb2845e data-v-08fbf4b6><!--[--><span data-v-08fbf4b6>React Native</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/react-docs/self-media.html" tabindex="0" data-v-afb2845e data-v-08fbf4b6><!--[--><span data-v-08fbf4b6>自媒体</span><!--]--></a><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-9fd4d1dd data-v-3f90c1a5><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-3f90c1a5 data-v-be9742d9 data-v-b4ccac88><span class="check" data-v-b4ccac88><span class="icon" data-v-b4ccac88><!--[--><span class="vpi-sun sun" data-v-be9742d9></span><span class="vpi-moon moon" data-v-be9742d9></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-9fd4d1dd data-v-ef6192dc data-v-e71e869c><!--[--><a class="VPSocialLink no-icon" href="https://github.com/message163/react-docs.git" aria-label="github" target="_blank" rel="noopener" data-v-e71e869c data-v-358b6670><span class="vpi-social-github" /></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-9fd4d1dd data-v-f953d92f data-v-af5898d3><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-af5898d3><span class="vpi-more-horizontal icon" data-v-af5898d3></span></button><div class="menu" data-v-af5898d3><div class="VPMenu" data-v-af5898d3 data-v-20ed86d6><!----><!--[--><!--[--><!----><div class="group" data-v-f953d92f><div class="item appearance" data-v-f953d92f><p class="label" data-v-f953d92f>Appearance</p><div class="appearance-action" data-v-f953d92f><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-f953d92f data-v-be9742d9 data-v-b4ccac88><span class="check" data-v-b4ccac88><span class="icon" data-v-b4ccac88><!--[--><span class="vpi-sun sun" data-v-be9742d9></span><span class="vpi-moon moon" data-v-be9742d9></span><!--]--></span></span></button></div></div></div><div class="group" data-v-f953d92f><div class="item social-links" data-v-f953d92f><div class="VPSocialLinks social-links-list" data-v-f953d92f data-v-e71e869c><!--[--><a class="VPSocialLink no-icon" href="https://github.com/message163/react-docs.git" aria-label="github" target="_blank" rel="noopener" data-v-e71e869c data-v-358b6670><span class="vpi-social-github" /></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-9fd4d1dd data-v-6bee1efd><span class="container" data-v-6bee1efd><span class="top" data-v-6bee1efd></span><span class="middle" data-v-6bee1efd></span><span class="bottom" data-v-6bee1efd></span></span></button></div></div></div></div><div class="divider" data-v-9fd4d1dd><div class="divider-line" data-v-9fd4d1dd></div></div></div><!----></header><div class="VPLocalNav has-sidebar empty" data-v-d8b57b2d data-v-2488c25a><div class="container" data-v-2488c25a><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-2488c25a><span class="vpi-align-left menu-icon" data-v-2488c25a></span><span class="menu-text" data-v-2488c25a>Menu</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-2488c25a data-v-883964e0><button data-v-883964e0>Return to top</button><!----></div></div></div><aside class="VPSidebar" data-v-d8b57b2d data-v-42c4c606><div class="curtain" data-v-42c4c606></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-42c4c606><span class="visually-hidden" id="sidebar-aria-label" data-v-42c4c606> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="no-transition group" data-v-51288d80><section class="VPSidebarItem level-0 has-active" data-v-51288d80 data-v-edd2eed8><div class="item" role="button" tabindex="0" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><h2 class="text" data-v-edd2eed8>入门</h2><!----></div><div class="items" data-v-edd2eed8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/basic/introduce.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>简介</p><!--]--></a><!----></div><!----></div><section class="VPSidebarItem level-1" data-v-edd2eed8 data-v-edd2eed8><div class="item" role="button" tabindex="0" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><h3 class="text" data-v-edd2eed8>环境搭建</h3><!----></div><div class="items" data-v-edd2eed8><!--[--><div class="VPSidebarItem level-2 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/basic/env-android.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>Android环境搭建</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-2 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/basic/env-ios.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>iOS环境搭建</p><!--]--></a><!----></div><!----></div><!--]--></div></section><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/basic/structure.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>目录结构</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-51288d80><section class="VPSidebarItem level-0" data-v-51288d80 data-v-edd2eed8><div class="item" role="button" tabindex="0" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><h2 class="text" data-v-edd2eed8>原理</h2><!----></div><div class="items" data-v-edd2eed8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/principle/architecture.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>架构</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/principle/render.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>渲染</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/principle/communication.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>通讯</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-51288d80><section class="VPSidebarItem level-0" data-v-51288d80 data-v-edd2eed8><div class="item" role="button" tabindex="0" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><h2 class="text" data-v-edd2eed8>界面和交互</h2><!----></div><div class="items" data-v-edd2eed8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/ui/style.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>样式</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/ui/layout.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>布局</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/ui/image.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>图片</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/ui/event.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>事件</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/ui/animate.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>动画</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/ui/network.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>网络</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-51288d80><section class="VPSidebarItem level-0" data-v-51288d80 data-v-edd2eed8><div class="item" role="button" tabindex="0" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><h2 class="text" data-v-edd2eed8>组件</h2><!----></div><div class="items" data-v-edd2eed8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/button.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>button</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/text.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>text</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/image.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>image</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/imageBackground.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>imageBackground</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/textInput.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>textInput</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/view.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>view</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/scrollView.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>scrollView</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/switch.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>switch</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/modal.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>modal</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/components/keyboardAvoidingView.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>keyboardAvoidingView</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-51288d80><section class="VPSidebarItem level-0" data-v-51288d80 data-v-edd2eed8><div class="item" role="button" tabindex="0" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><h2 class="text" data-v-edd2eed8>发布</h2><!----></div><div class="items" data-v-edd2eed8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/build/build.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>打包</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/build/publish-ios.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>iOS上架</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-edd2eed8 data-v-edd2eed8><div class="item" data-v-edd2eed8><div class="indicator" data-v-edd2eed8></div><a class="VPLink link link" href="/react-docs/react-native/build/publish-android.html" data-v-edd2eed8><!--[--><p class="text" data-v-edd2eed8>Android上架</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-d8b57b2d data-v-9a6c75ad><div class="VPDoc has-sidebar has-aside" data-v-9a6c75ad data-v-e6f2a212><!--[--><!--]--><div class="container" data-v-e6f2a212><div class="aside" data-v-e6f2a212><div class="aside-curtain" data-v-e6f2a212></div><div class="aside-container" data-v-e6f2a212><div class="aside-content" data-v-e6f2a212><div class="VPDocAside" data-v-e6f2a212 data-v-cb998dce><!--[--><!--]--><!--[--><!--]--><nav aria-labelledby="doc-outline-aria-label" class="VPDocAsideOutline" data-v-cb998dce data-v-f610f197><div class="content" data-v-f610f197><div class="outline-marker" data-v-f610f197></div><div aria-level="2" class="outline-title" id="doc-outline-aria-label" role="heading" data-v-f610f197>文章目录</div><ul class="VPDocOutlineItem root" data-v-f610f197 data-v-53c99d69><!--[--><!--]--></ul></div></nav><!--[--><!--]--><div class="spacer" data-v-cb998dce></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-e6f2a212><div class="content-container" data-v-e6f2a212><!--[--><!--]--><main class="main" data-v-e6f2a212><div style="position:relative;" class="vp-doc _react-docs_react-native_basic_introduce" data-v-e6f2a212><div><h1 id="react-native-简介" tabindex="-1">React Native 简介 <a class="header-anchor" href="#react-native-简介" aria-label="Permalink to &quot;React Native 简介&quot;">​</a></h1><p><img src="/react-docs/assets/logo.Dka_5ia0.jpg" alt="React Native Logo"></p><p>学习React Native之前，需要先学习<code>React</code>。</p><p><a href="https://www.bilibili.com/video/BV1mcpPeMETt/?spm_id_from=333.1387.homepage.video_card.click" target="_blank" rel="noreferrer">React视频教程</a></p><p>欢迎收看2025年最新的React Native教程，目前对应的版本是<code>0.80.1</code>，那我为什么要使用React Native呢？</p><p>因为如果要单独开发iOS你需要学习<code>Objective-C</code>或者<code>Swift</code>，如果单独开发Android你需要学习<code>Java</code>或者<code>Kotlin</code>，学习成本太高。</p><p>而使用React Native你只需要学习<code>JavaScript</code>和<code>React</code>，就可以开发出<code>iOS</code>和<code>Android</code>应用，当然也有一些其他更优秀的跨平台框架，比如<code>flutter(如果你愿意学习dart的话)</code>，<code>uniapp(如果你愿意牺牲一些性能的话)</code>。</p><h3 id="那么有谁在用呢🤔" tabindex="-1">那么有谁在用呢🤔? <a class="header-anchor" href="#那么有谁在用呢🤔" aria-label="Permalink to &quot;那么有谁在用呢🤔?&quot;">​</a></h3><p>根据<code>libchecker</code>工具的统计，目前所统计的使用了React Native的app有：</p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>该名单包含(全部使用React Native开发，原生混编，以及部分页面使用React Native开发)</p></div><p><img src="/react-docs/assets/user.CjKoyVph.jpg" alt="React Native App List"></p><p><strong>京东</strong> / <strong>小红书</strong> / <strong>淘宝</strong> / <strong>虎牙直播</strong> / <strong>优酷视频</strong> / <strong>喜马拉雅</strong> / <strong>飞书</strong> / <strong>抖音</strong> / <strong>网易云音乐</strong></p><h3 id="支持的平台😊" tabindex="-1">支持的平台😊 <a class="header-anchor" href="#支持的平台😊" aria-label="Permalink to &quot;支持的平台😊&quot;">​</a></h3><ul><li><a href="https://reactnative.dev/docs/set-up-your-environment?os=windows&amp;platform=android" target="_blank" rel="noreferrer">Android 官方维护</a></li><li><a href="https://reactnative.dev/docs/set-up-your-environment?os=macos&amp;platform=ios" target="_blank" rel="noreferrer">iOS 官方维护</a></li><li><a href="https://reactnative.dev/docs/getting-started" target="_blank" rel="noreferrer">Web 官方维护</a></li><li><a href="https://github.com/react-native-tvos/react-native-tvos/wiki" target="_blank" rel="noreferrer">TV(Apple TV, Android TV) 社区维护</a></li><li><a href="https://microsoft.github.io/react-native-windows/" target="_blank" rel="noreferrer">Windows 微软维护</a></li><li><a href="https://microsoft.github.io/react-native-macos/" target="_blank" rel="noreferrer">MacOS 微软维护(刷波格局)</a></li><li><a href="https://areslabs.github.io/alita/" target="_blank" rel="noreferrer">小程序 已经不维护了(慎用)</a></li></ul><h3 id="鸣谢名单🙏" tabindex="-1">鸣谢名单🙏 <a class="header-anchor" href="#鸣谢名单🙏" aria-label="Permalink to &quot;鸣谢名单🙏&quot;">​</a></h3><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>由于苹果的开发者账号需要688元/年，所以上架iOS需要这个资金，为了后期更好的演示上架功能，感谢以下大佬的赞助众筹了688元，排名不分先后。</p></div><div class="thanks-tags"><span>知易行难</span><span>俞子兴</span><span>邵齐</span><span>东方有个懒人</span><span>真</span><span>元</span><span>诶呦喂嘿</span><span>Groot</span><span>六丶六</span><span>办证哥</span><span>黄坤</span><span>韩利荣</span><span>冯庆港</span><span>无六千</span><span>聪</span><span>小插曲、</span><span>路人甲</span><span>玄德</span><span>smeb</span><span>Panda</span><span>何旭</span><span>琦思妙想</span><span>🔆</span><span>不忘初心</span><span>森林哥</span><span>Shen</span><span>yoga</span><span>Jo良Jo影</span><span>顾清曦</span><span>Richar</span><span>KassyT</span><span>777</span><span>无限可能</span></div></div></div></main><footer class="VPDocFooter" data-v-e6f2a212 data-v-1bcd8184><!--[--><!--]--><div class="edit-info" data-v-1bcd8184><!----><div class="last-updated" data-v-1bcd8184><p class="VPLastUpdated" data-v-1bcd8184 data-v-1bb0c8a8>更新时间: <time datetime="2025-08-11T11:14:30.000Z" data-v-1bb0c8a8></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-1bcd8184><span class="visually-hidden" id="doc-footer-aria-label" data-v-1bcd8184>Pager</span><div class="pager" data-v-1bcd8184><!----></div><div class="pager" data-v-1bcd8184><a class="VPLink link pager-link next" href="/react-docs/react-native/basic/env-android.html" data-v-1bcd8184><!--[--><span class="desc" data-v-1bcd8184>下一页</span><span class="title" data-v-1bcd8184>Android环境搭建</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-d8b57b2d data-v-566314d4><div class="container" data-v-566314d4><p class="message" data-v-566314d4>Released under the MIT License.</p><p class="copyright" data-v-566314d4>Copyright ©2025-present xiaoman</p></div></footer><!--[--><!--]--></div></div>
    <script>window.__VP_HASH_MAP__=JSON.parse("{\"index.md\":\"hPSgQZqd\",\"react-native_basic_env-android.md\":\"DqMayO6g\",\"react-native_basic_env-ios.md\":\"CkWjk_NU\",\"react-native_basic_introduce.md\":\"CS8vVX_5\",\"react-native_basic_structure.md\":\"C3DcWKeE\",\"react-native_build_publish-android.md\":\"BzkLQDCx\",\"react-native_build_publish-ios.md\":\"CNA4Yy2Q\",\"react-native_build_publish.md\":\"DOBwk2Z0\",\"react-native_components_button.md\":\"DEnhRfao\",\"react-native_components_image.md\":\"BtAA2VJw\",\"react-native_components_imagebackground.md\":\"C2FzPmp8\",\"react-native_components_keyboardavoidingview.md\":\"CLW55S9N\",\"react-native_components_modal.md\":\"Bae3kD9l\",\"react-native_components_scrollview.md\":\"e5FPdAp3\",\"react-native_components_switch.md\":\"BEaJGIu-\",\"react-native_components_text.md\":\"D5cuOP48\",\"react-native_components_textinput.md\":\"eqjPyD_6\",\"react-native_components_view.md\":\"aCFn2KMS\",\"react-native_principle_architecture.md\":\"CFyZONl7\",\"react-native_principle_communication.md\":\"DyNd3MGj\",\"react-native_principle_render.md\":\"DxCv6_aP\",\"react-native_ui_animate.md\":\"DSQ9VK8K\",\"react-native_ui_event.md\":\"BR-8tO1J\",\"react-native_ui_image.md\":\"CP4LtAMM\",\"react-native_ui_layout.md\":\"DPGIYU7M\",\"react-native_ui_network.md\":\"rnAFNBFi\",\"react-native_ui_style.md\":\"E8O3gte-\",\"react_basic_development.md\":\"C6qYcAVh\",\"react_basic_introduce.md\":\"fZWWdIUZ\",\"react_basic_tsx.md\":\"DByUo0VD\",\"react_components_base.md\":\"B1z9fl_L\",\"react_components_communication.md\":\"BNcwo3Eo\",\"react_components_controlled.md\":\"QxRckZOY\",\"react_components_createportal.md\":\"Ex_Dxh19\",\"react_components_hoc.md\":\"Dzs0aIHF\",\"react_components_practice.md\":\"ZFFJ_-yi\",\"react_components_suspense.md\":\"BPfqggbf\",\"react_css_css-atomic.md\":\"a20uPIMv\",\"react_css_css-in-js.md\":\"CUWVzbnz\",\"react_css_css-modules.md\":\"CGf14pek\",\"react_hooks_custom.md\":\"CaNMVWoZ\",\"react_hooks_usecallback.md\":\"DVS1Ooeh\",\"react_hooks_usecontext.md\":\"_UB24jBY\",\"react_hooks_usedebugvalue.md\":\"KiwotyDI\",\"react_hooks_usedeferredvalue.md\":\"CXq6iUH0\",\"react_hooks_useeffect.md\":\"KCjBkFvW\",\"react_hooks_useid.md\":\"k7uHG0jc\",\"react_hooks_useimmer.md\":\"Cmgt3f2V\",\"react_hooks_useimperativehandle.md\":\"QrmF3WqD\",\"react_hooks_useinsertioneffect.md\":\"DaYwJXNK\",\"react_hooks_uselayouteffect.md\":\"CMS8Mzvy\",\"react_hooks_usememo.md\":\"CmprAgDZ\",\"react_hooks_usereducer.md\":\"C3fLWepF\",\"react_hooks_useref.md\":\"CsdBXAky\",\"react_hooks_usestate.md\":\"BZyxNppQ\",\"react_hooks_usesyncexternalstore.md\":\"C9nPPzG2\",\"react_hooks_usetransition.md\":\"wP0bpxbB\",\"react_principle_requestidlecallback.md\":\"DYal_Q3P\",\"react_principle_vdom.md\":\"TK6xaJt_\",\"react_router_apis_await.md\":\"C9cf-0L_\",\"react_router_apis_link.md\":\"BryJjxOr\",\"react_router_apis_meta.md\":\"CGFy9X1M\",\"react_router_apis_navlink.md\":\"B6Igfdy5\",\"react_router_apis_redirect.md\":\"DrUu0bBH\",\"react_router_apis_scrollrestoration.md\":\"Ck-UN_fr\",\"react_router_boundary.md\":\"CaVehYQQ\",\"react_router_hooks_useactiondata.md\":\"BZTGRAg1\",\"react_router_hooks_useloaderdata.md\":\"D7TP6fEs\",\"react_router_hooks_uselocation.md\":\"DSlStqAw\",\"react_router_hooks_usenavigate.md\":\"BJWCwhif\",\"react_router_hooks_usenavigation.md\":\"Ax-0R8vL\",\"react_router_hooks_useparams.md\":\"r5GjnuLL\",\"react_router_hooks_userouteerror.md\":\"6hDOfA64\",\"react_router_hooks_usesearchparams.md\":\"DBV5jR2T\",\"react_router_hooks_usesubmit.md\":\"CwPfU5qt\",\"react_router_install.md\":\"BCGEIWM3\",\"react_router_lazy.md\":\"DVUcKnAo\",\"react_router_mode.md\":\"vpJFFhbY\",\"react_router_nav.md\":\"CmCpYDG_\",\"react_router_operation.md\":\"gH7Tts0c\",\"react_router_params.md\":\"RR8jX9GP\",\"react_router_router.md\":\"DV0pJOqP\",\"react_tools_babel.md\":\"B3NrJ-3A\",\"react_tools_swc.md\":\"CAQc7VwN\",\"react_zustand_install.md\":\"DkjSnUvU\",\"react_zustand_middleware.md\":\"B63WNPSB\",\"react_zustand_simplify.md\":\"Cep5lyK2\",\"react_zustand_state.md\":\"Cf3X0VOI\",\"react_zustand_subscribe.md\":\"cw5-PgCR\",\"self-media.md\":\"BQoC4pB6\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"react docs\",\"description\":\"this is react docs for xiaoman\",\"base\":\"/react-docs/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":\"/logo.png\",\"search\":{\"provider\":\"local\"},\"lastUpdated\":{\"text\":\"更新时间\"},\"outline\":{\"label\":\"文章目录\"},\"nav\":[{\"text\":\"首页\",\"link\":\"/\"},{\"text\":\"React\",\"link\":\"/react/basic/introduce\"},{\"text\":\"React Native\",\"link\":\"/react-native/basic/introduce\"},{\"text\":\"自媒体\",\"link\":\"/self-media\"}],\"sidebar\":{\"/react/\":[{\"text\":\"入门\",\"items\":[{\"text\":\"React基本介绍\",\"link\":\"/react/basic/introduce\"},{\"text\":\"React开发环境搭建\",\"link\":\"/react/basic/development\"},{\"text\":\"tsx语法入门\",\"link\":\"/react/basic/tsx\"}]},{\"text\":\"工具\",\"items\":[{\"text\":\"Babel\",\"link\":\"/react/tools/babel\"},{\"text\":\"Swc\",\"link\":\"/react/tools/swc\"}]},{\"text\":\"原理\",\"items\":[{\"text\":\"vdom fiber diff\",\"link\":\"/react/principle/vdom\"},{\"text\":\"requestidlecallback\",\"link\":\"/react/principle/requestidlecallback\"}]},{\"text\":\"组件\",\"items\":[{\"text\":\"认识组件\",\"link\":\"/react/components/base\"},{\"text\":\"组件通信\",\"link\":\"/react/components/communication\"},{\"text\":\"受控组件\",\"link\":\"/react/components/controlled\"},{\"text\":\"传送组件\",\"link\":\"/react/components/createPortal\"},{\"text\":\"异步组件\",\"link\":\"/react/components/suspense\"},{\"text\":\"组件实战\",\"link\":\"/react/components/practice\"},{\"text\":\"高阶组件\",\"link\":\"/react/components/hoc\"}]},{\"text\":\"css方案\",\"items\":[{\"text\":\"css modules\",\"link\":\"/react/css/css-modules\"},{\"text\":\"css in js\",\"link\":\"/react/css/css-in-js\"},{\"text\":\"css 原子化\",\"link\":\"/react/css/css-atomic\"}]},{\"text\":\"Hooks\",\"items\":[{\"text\":\"数据驱动\",\"items\":[{\"text\":\"useState\",\"link\":\"/react/hooks/useState\"},{\"text\":\"useReducer\",\"link\":\"/react/hooks/useReducer\"},{\"text\":\"useImmer\",\"link\":\"/react/hooks/useImmer\"},{\"text\":\"useSyncExternalStore\",\"link\":\"/react/hooks/useSyncExternalStore\"},{\"text\":\"useTransition\",\"link\":\"/react/hooks/useTransition\"},{\"text\":\"useDeferredValue\",\"link\":\"/react/hooks/useDeferredValue\"}]},{\"text\":\"副作用\",\"items\":[{\"text\":\"useEffect\",\"link\":\"/react/hooks/useEffect\"},{\"text\":\"useLayoutEffect\",\"link\":\"/react/hooks/useLayoutEffect\"},{\"text\":\"useInsertionEffect\",\"link\":\"/react/hooks/useInsertionEffect\"}]},{\"text\":\"状态传递\",\"items\":[{\"text\":\"useRef\",\"link\":\"/react/hooks/useRef\"},{\"text\":\"useImperativeHandle\",\"link\":\"/react/hooks/useImperativeHandle\"},{\"text\":\"useContext\",\"link\":\"/react/hooks/useContext\"}]},{\"text\":\"状态派生\",\"items\":[{\"text\":\"useMemo\",\"link\":\"/react/hooks/useMemo\"},{\"text\":\"useCallback\",\"link\":\"/react/hooks/useCallback\"}]},{\"text\":\"工具Hooks\",\"items\":[{\"text\":\"useDebugValue\",\"link\":\"/react/hooks/useDebugValue\"},{\"text\":\"useId\",\"link\":\"/react/hooks/useId\"}]},{\"text\":\"其他\",\"items\":[{\"text\":\"自定义hooks\",\"link\":\"/react/hooks/custom\"}]}]},{\"text\":\"Router\",\"items\":[{\"text\":\"基本使用\",\"items\":[{\"text\":\"安装\",\"link\":\"/react/router/install\"},{\"text\":\"模式\",\"link\":\"/react/router/mode\"},{\"text\":\"路由\",\"link\":\"/react/router/router\"},{\"text\":\"传参\",\"link\":\"/react/router/params\"},{\"text\":\"懒加载\",\"link\":\"/react/router/lazy\"},{\"text\":\"操作\",\"link\":\"/react/router/operation\"},{\"text\":\"导航\",\"link\":\"/react/router/nav\"},{\"text\":\"边界处理\",\"link\":\"/react/router/boundary\"}]},{\"text\":\"API\",\"items\":[{\"text\":\"Await\",\"link\":\"/react/router/apis/await\"},{\"text\":\"Link\",\"link\":\"/react/router/apis/link\"},{\"text\":\"Meta\",\"link\":\"/react/router/apis/meta\"},{\"text\":\"NavLink\",\"link\":\"/react/router/apis/navlink\"},{\"text\":\"redirect\",\"link\":\"/react/router/apis/redirect\"},{\"text\":\"ScrollRestoration \",\"link\":\"/react/router/apis/scrollRestoration\"}]},{\"text\":\"Hooks\",\"items\":[{\"text\":\"useNavigate\",\"link\":\"/react/router/hooks/useNavigate\"},{\"text\":\"useNavigation\",\"link\":\"/react/router/hooks/useNavigation\"},{\"text\":\"useParams\",\"link\":\"/react/router/hooks/useParams\"},{\"text\":\"useSearchParams\",\"link\":\"/react/router/hooks/useSearchParams\"},{\"text\":\"useLocation\",\"link\":\"/react/router/hooks/useLocation\"},{\"text\":\"useLoaderData\",\"link\":\"/react/router/hooks/useLoaderData\"},{\"text\":\"useActionData\",\"link\":\"/react/router/hooks/useActionData\"},{\"text\":\"useRouteError\",\"link\":\"/react/router/hooks/useRouteError\"},{\"text\":\"useSubmit\",\"link\":\"/react/router/hooks/useSubmit\"}]}]},{\"text\":\"Zustand\",\"items\":[{\"text\":\"安装\",\"link\":\"/react/zustand/install\"},{\"text\":\"状态处理\",\"link\":\"/react/zustand/state\"},{\"text\":\"状态简化\",\"link\":\"/react/zustand/simplify\"},{\"text\":\"中间件\",\"link\":\"/react/zustand/middleware\"},{\"text\":\"订阅\",\"link\":\"/react/zustand/subscribe\"}]}],\"/react-native/\":[{\"text\":\"入门\",\"items\":[{\"text\":\"简介\",\"link\":\"/react-native/basic/introduce\"},{\"text\":\"环境搭建\",\"items\":[{\"text\":\"Android环境搭建\",\"link\":\"/react-native/basic/env-android\"},{\"text\":\"iOS环境搭建\",\"link\":\"/react-native/basic/env-ios\"}]},{\"text\":\"目录结构\",\"link\":\"/react-native/basic/structure\"}]},{\"text\":\"原理\",\"items\":[{\"text\":\"架构\",\"link\":\"/react-native/principle/architecture\"},{\"text\":\"渲染\",\"link\":\"/react-native/principle/render\"},{\"text\":\"通讯\",\"link\":\"/react-native/principle/communication\"}]},{\"text\":\"界面和交互\",\"items\":[{\"text\":\"样式\",\"link\":\"/react-native/ui/style\"},{\"text\":\"布局\",\"link\":\"/react-native/ui/layout\"},{\"text\":\"图片\",\"link\":\"/react-native/ui/image\"},{\"text\":\"事件\",\"link\":\"/react-native/ui/event\"},{\"text\":\"动画\",\"link\":\"/react-native/ui/animate\"},{\"text\":\"网络\",\"link\":\"/react-native/ui/network\"}]},{\"text\":\"组件\",\"items\":[{\"text\":\"button\",\"link\":\"/react-native/components/button\"},{\"text\":\"text\",\"link\":\"/react-native/components/text\"},{\"text\":\"image\",\"link\":\"/react-native/components/image\"},{\"text\":\"imageBackground\",\"link\":\"/react-native/components/imageBackground\"},{\"text\":\"textInput\",\"link\":\"/react-native/components/textInput\"},{\"text\":\"view\",\"link\":\"/react-native/components/view\"},{\"text\":\"scrollView\",\"link\":\"/react-native/components/scrollView\"},{\"text\":\"switch\",\"link\":\"/react-native/components/switch\"},{\"text\":\"modal\",\"link\":\"/react-native/components/modal\"},{\"text\":\"keyboardAvoidingView\",\"link\":\"/react-native/components/keyboardAvoidingView\"}]},{\"text\":\"发布\",\"items\":[{\"text\":\"打包\",\"link\":\"/react-native/build/build\"},{\"text\":\"iOS上架\",\"link\":\"/react-native/build/publish-ios\"},{\"text\":\"Android上架\",\"link\":\"/react-native/build/publish-android\"}]}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/message163/react-docs.git\"}],\"docFooter\":{\"prev\":\"上一页\",\"next\":\"下一页\"},\"footer\":{\"message\":\"Released under the MIT License.\",\"copyright\":\"Copyright ©2025-present xiaoman\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
    
  </body>
</html>